﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Flow
{

    /// <summary>
    /// 边模型（节点的连接关系）
    /// </summary>
    public class EdgesModel
    {
        /// <summary>
        /// 源句柄
        /// </summary>
        public string sourceHandle { get; set; } = string.Empty;

        /// <summary>
        /// 目标句柄
        /// </summary>
        public string targetHandle { get; set; } = string.Empty;

        /// <summary>
        /// 类型
        /// </summary>
        public string type { get; set; } = string.Empty;

        /// <summary>
        /// 源id（源节点id）
        /// </summary>
        public string source { get; set; } = string.Empty;

        /// <summary>
        /// 目标id（目标节点id）
        /// </summary>
        public string target { get; set; } = string.Empty;

        /// <summary>
        /// 数据
        /// </summary>
        public EdgesExtendModel data { get; set; } = new EdgesExtendModel();

        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; } = string.Empty;

        /// <summary>
        /// 名称
        /// </summary>
        public string label { get; set; } = string.Empty;

        /// <summary>
        /// 坐标
        /// </summary>
        public string sourceX { get; set; } = string.Empty;

        /// <summary>
        /// 坐标
        /// </summary>
        public string sourceY { get; set; } = string.Empty;

        /// <summary>
        /// 坐标
        /// </summary>
        public string targetX { get; set; } = string.Empty;

        /// <summary>
        /// 坐标
        /// </summary>
        public string targetY { get; set; } = string.Empty;

        /// <summary>
        /// 线条是否流动
        /// </summary>
        public bool animated { get; set; }

        /// <summary>
        /// 线条样式
        /// </summary>
        public ClassStyle style { get; set; } = new ClassStyle();
    }
}
